package com.eastfair.imaster.mydao;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.mapper.SuperMapper;
import com.eastfair.imaster.dto.ShopWindowDTO;
import com.eastfair.imaster.entity.ShopWindow;
import com.eastfair.imaster.vo.ShopWindowVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 嘉宾列表详情
 * </p>
 *
 * @author zjn
 * @date 2021-09-02
 */
@Repository
public interface MyShopWindowMapper extends SuperMapper<ShopWindow> {

    /**
     * 电子橱窗列表
     *
     * @param page          分页详情
     * @param shopWindowDTO 过滤条件
     * @param projectId     项目id
     * @param exhibitionId  展会id
     * @return 电子橱窗列表
     */
    @InterceptorIgnore(tenantLine = "true")
    Page<ShopWindowVO> pageList(Page<ShopWindowDTO> page, @Param("shopWindowDTO") ShopWindowDTO shopWindowDTO,
                                @Param("projectId") Long projectId,
                                @Param("exhibitionId") Long exhibitionId);

    /**
     * 电子橱窗列表不分页
     *
     * @param shopWindowDTO 过滤条件
     * @param projectId     项目id
     * @param exhibitionId  展会id
     * @return 电子橱窗列表
     */
    @InterceptorIgnore(tenantLine = "true")
    List<ShopWindowVO> list(@Param("shopWindowDTO") ShopWindowDTO shopWindowDTO,
                            @Param("projectId") Long projectId,
                            @Param("exhibitionId") Long exhibitionId);

}
